package com.glodon.ggzy.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * GgCqLaw entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "GG_CQ_LAW")
public class GgCqLaw implements java.io.Serializable {

	// Fields    

	private String id;

	private String name;

	private Date updatetime;

	private String lawtype;

	private String lawtext;

	private String lawurl;

	private String lawurlname;

	// Constructors

	/** default constructor */
	public GgCqLaw() {
	}

	/** full constructor */
	public GgCqLaw(String name, Date updatetime, String lawtype, String lawtext, String lawurl, String lawurlname) {
		this.name = name;
		this.updatetime = updatetime;
		this.lawtype = lawtype;
		this.lawtext = lawtext;
		this.lawurl = lawurl;
		this.lawurlname = lawurlname;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 40)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 100)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATETIME", length = 7)
	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	@Column(name = "LAWTYPE", length = 50)
	public String getLawtype() {
		return this.lawtype;
	}

	public void setLawtype(String lawtype) {
		this.lawtype = lawtype;
	}

	@Column(name = "LAWTEXT")
	public String getLawtext() {
		return this.lawtext;
	}

	public void setLawtext(String lawtext) {
		this.lawtext = lawtext;
	}

	@Column(name = "LAWURL", length = 256)
	public String getLawurl() {
		return this.lawurl;
	}

	public void setLawurl(String lawurl) {
		this.lawurl = lawurl;
	}

	@Column(name = "LAWURLNAME", length = 100)
	public String getLawurlname() {
		return this.lawurlname;
	}

	public void setLawurlname(String lawurlname) {
		this.lawurlname = lawurlname;
	}

}
